<!-- 需引入-->
<script type="text/javascript" src="{{ asset('/assets/js/editor/kindeditor-min.js') }}"></script>
<script type="text/javascript" src="{{ asset('/assets/js/editor/lang/zh_CN.js') }}"></script>
<!-- 需初始化-->
<script type="text/javascript">
    $(function () {
        //初始化编辑器
        var editor = KindEditor.create('.editor', {
            width: '98%',
            height: '300px',
            resizeType: 1,
            uploadJson: '{{ path('kindUpload')}}?nbdir=img',
            fileManagerJson: '{{ path('kindManager')}}?nbdir=img',
            allowFileManager: true
        });
    });
</script>